package xyz.eden.boot.uc.application.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import xyz.eden.boot.uc.infrastructure.config.ApplicationConfig;
import xyz.eden.boot.uc.infrastructure.config.EnvironmentConfig;

import javax.annotation.Resource;

/**
 * ApplicationCOnfig
 *
 * @author gavin
 * @version 1.0
 * @descriptor
 * @date 2023/7/30 14:54
 */
@Slf4j
@Configuration
public class ServerConfig {

    @Resource
    private ApplicationConfig applicationConfig;
    @Resource
    private EnvironmentConfig environmentConfig;


    public String getServerName() {
        return applicationConfig.getAppName();
    }

    public Integer getServerPort() {
        return applicationConfig.getPort();
    }
}
